package com.hopu.oa.service.impl.user;


import com.hopu.oa.dao.user.UserPlaneDao;
import com.hopu.oa.entity.user.AoaNotepaper;
import com.hopu.oa.service.user.UserPlaneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserPlaneServiceImp implements UserPlaneService {
    @Autowired
    private UserPlaneDao userPlaneDao;

    @Override
    public List<AoaNotepaper> queryNotepaper(int id, int index, int size) {
        return userPlaneDao.queryNotepaper(id, index, size);
    }

    @Override
    public int addNotepaperById(AoaNotepaper notepaper) {

        return userPlaneDao.addNotepaperById(notepaper);
    }

    @Override
    public int updateNotepaper(AoaNotepaper notepaper) {
        return userPlaneDao.updateNotepaper(notepaper);
    }

    @Override
    public int deleteNotepaper(int notepaperId) {
        return userPlaneDao.deleteNotepaper(notepaperId);
    }

}
